{extend name="../../admin/view/main"}

{block name="button"}

{/block}

{block name='content'}
<div class="think-box-shadow">
    {include file='rework/rework_record/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class="text-left nowrap">ID</th>
            <th class="text-left nowrap">城市对接人</th>
            <th class="text-left nowrap">锁定车辆</th>
            <th class="text-left nowrap">锁定时间</th>
            <th class="text-left nowrap">是否解锁</th>
            <th class="text-left nowrap">锁定原因</th>
            <th class="text-left nowrap">锁定图片</th>
            <th class="text-left nowrap">解锁时间</th>
            <th class="text-left nowrap">操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class="text-left nowrap">{$vo.id|default=''}</td>
            <td class="text-left nowrap">{$vo.uuid_city_name|default=''}</td>
            <td class="text-left nowrap">{$vo.plate_number|default=''}</td>
            <td class="text-left nowrap">{$vo.create_at|format_datetime}</td>
            <td class="text-left nowrap">
                {if $vo.is_unlock eq 0}<span class="color-red">否</span>
                    {elseif $vo.is_unlock eq 1}<span class="color-green">是</span>
                {/if}
            </td>
            <td class="text-left nowrap">{$vo.reason|default=''}</td>
            <td class="text-left nowrap">
                {foreach $vo.images as $image}
                <div class="headimg" data-lazy-src="{$image}" data-tips-image></div>
                {/foreach}
            </td>
            <td class="text-left nowrap">{$vo.unlock_at|format_datetime}</td>

            <td class='text-left nowrap'>

                <!--{if $vo.is_unlock eq 0 and auth("unlock")}-->
                    <a class="layui-btn layui-btn-warm layui-btn-xs" data-action="{:url('unlock')}" data-csrf="{:systoken('is_unlock')}" data-value="id#{$vo.id};is_unlock#1">解 锁</a>
                <!--{/if}-->

            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}